package com.code.cheney.shiro.service;

import com.code.cheney.shiro.entity.Role;

/**
 * 
 * Project: shiro Class: RoleService Description:
 * 
 * @author: Cheney
 * @version 1.0
 * 
 */
public interface RoleService {

	public Role createRole(Role role);

	public void deleteRole(Long roleId);

	/**
	 * 添加角色-权限之间关系
	 * 
	 * @param roleId
	 * @param permissionIds
	 */
	public void correlationPermissions(Long roleId, Long... permissionIds);

	/**
	 * 移除角色-权限之间关系
	 * 
	 * @param roleId
	 * @param permissionIds
	 */
	public void uncorrelationPermissions(Long roleId, Long... permissionIds);

}
